import request from './request'
import {passwordHash} from '../utilities/crypto'
import {app} from '../utilities/app'
// 查询企业基本信息列表
export function query ({currentPage = 1, perPage = 10,companyName} = {}) {
  return request({
    url: '/company/queryCompanyInfoListPage.do',
    method: 'POST',
    body: {currentPage, perPage,companyName}
  })
}

export function operation ({companyNo,status}) {
  return request({
    url: '/company/operationCompanyInfo.do',
    method: 'POST',
    body: {companyNo,status}
  })
}


export function queryCompanyList () {
  return request({
    url: '/company/queryCompanyScaleInfoList.do',
    method: 'POST',
    body: {}
  })
}

// 查询企业详情
export function queryCompanyDetail (companyNo) {
  return request({
    url: '/company/queryCompanyInfo.do',
    method: 'POST',
    body: {companyNo}
  })
}